package com.xbongbong.paas.help.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.toolbox.exception.XbbException;

import java.util.List;
import java.util.Map;

/**
 * @author: wufeng
 * @date: 2018/11/14 15:42
 * @desrcption:
 */
public interface FormDataSubFormLinkDataService<T> {

    /**
     * 获取子表单的关联数据信息
     * @param t
     * @param subFormList
     * @param data
     * @param explainMap
     * @return
     * @throws XbbException
     */
    Map<String, JSONArray> subFormLinkDataGet(T t, List<String> subFormList, JSONObject data, Map<String, FieldAttrEntity> explainMap) throws XbbException;
}
